package tgc.rj.garbage.custom;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import tgc.rj.garbage.MainActivity;


public class BootCompletedReceiver extends BroadcastReceiver {
    static final String ACTION="android.intent.action.BOOT_COMPLETED";

    @Override
    public void onReceive(Context context, Intent intent) {
        //if(intent.getAction().equals(ACTION)) {
            Intent intent2 = new Intent(context, MainActivity.class);
            intent2.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            context.startActivity(intent2);
      //  }
    }
}
